'''
  @Description      
  @auther         leizi
'''
import  requests
from config import testplan
login_url = testplan+'/user/login/'
student_parame={
        "username": "liwanle1i",
        "password": "012345678910"
    }
teacher_parame= {
        "username": "liwanlei",
        "password": "123456"
    }
def get_students_token(parame) ->str:
    reponse = requests.post(login_url, json=parame)
    reslut = reponse.json()
    print(parame)
    print(reslut)
    token = reslut['data']['token']
    return  token
def get_teacher_tone(parame)->str:

    reponse = requests.post(login_url, json=parame)

    reslut = reponse.json()
    token = reslut['data']['token']
    return token